link_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
file(GLOB MESH_INCLUDE_LISTS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
file(COPY ${MESH_INCLUDE_LISTS} DESTINATION ${CMAKE_BINARY_DIR}/include)
file(GLOB MESH_LIST "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
add_library(mesh SHARED ${MESH_LIST} ${MESH_INCLUDE_LISTS})
target_link_libraries(mesh libmat libmx)
